var webPath = "";
var editor;
$(document).ready(function(){
	webPath = $("#webPath").val();
	var msg = $("#message").val();
	if(msg != ""){
		alert(msg);
	}
});

function goBack(){
	document.form1.action = webPath + "/admin/comment!list.action";
	document.form1.submit();
}

function submit(value){
	$("#commentState").val(value);
	document.form1.action = webPath + "/admin/comment!audit.action";
	document.form1.submit();
}

function del(commentId){
	if(commentId == ""){
		alert("请选择一条评论！");
		return false;
	}
	var question = confirm("确定删除吗？");
	if(question){
		document.form1.action = webPath + "/admin/comment!del.action?commentId="+commentId;
		document.form1.submit();
	}
}